﻿using System;

namespace 数组计算
{
    class Program
    {
        static void Main(string[] args)
        {
            double[] a = new double[15];
            for (int i = 1; i <= 10; i++)
                a[i] = i;
            double maxn=-998244353, minn=998244353, avg=0, all=0;
            for(int i=1;i<=10; i++)
            {
                if(maxn<=a[i])
                        {
                    maxn = a[i];
                }
                if (minn >= a[i])
                {
                    minn = a[i];
                }
                all += a[i];
            }
            avg = all / 10;
            Console.WriteLine("该数组的最小值为：" + Convert.ToString(minn));
            Console.WriteLine("该数组的最大值为：" + Convert.ToString(maxn));
            Console.WriteLine("该数组的和为：" + Convert.ToString(all));
            Console.WriteLine("该数组的平均值为：" + Convert.ToString(avg));
        }
    }
}
